package com.leyou.trade.dto;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 虎哥
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JacksonXmlRootElement(localName = "xml")
public class NotifyResult {
    @JacksonXmlProperty(localName = "return_code")
    private String code;
    @JacksonXmlProperty(localName = "return_msg")
    private String msg;

    private static NotifyResult ok = new NotifyResult("SUCCESS", "OK");

    public static NotifyResult ok(){
        return ok;
    }
}
